package _2_0;



public class Driver extends Employee implements DriveCar{
	int bonus;
		
	
//	public Driver() {
//		super();
//		
//	}

	public Driver(String name, int age, int salary,int bonus) {
		super(name, age, salary);
		this.bonus = bonus;
	}



	public int getBonus() {
		return bonus;
	}

	public void setBonus(int bonus) {
		this.bonus = bonus;
	}

	@Override
	public void work() {
		
		System.out.println(name+"˻");
		driveCar();
	}
	
	public double income()
	{
		return  this.salary+this.bonus;
	}

	public void driveCar() {
		
		System.out.println(name+":~~~");
	}
	
}